package com.ymatou.iapi.sellertrading.service;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
/**
*延迟收货Call
*FreeMaker Template自动生成代码
*/
public class DelayAutoReceiveCall extends YmatouAutoTestCall{
	private static String opurl ="/api/OrderOperate/DelayAutoReceive";
	
	public DelayAutoReceiveCall() {
		super(EnvSetup.getSystemUrl("sellertrading_iapi"),opurl,"POST","JSON");
	}
	
	public DelayAutoReceiveCall(int sellerId,int userId)
	{
		super(EnvSetup.getSystemUrl("sellertrading_iapi"), opurl+"?sellerid="+sellerId+"&UserId="+userId, "POST", "JSON");		
	}
	

	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
}